#include "zen_game_camera.h"
#include "zen_game_activity.h"
#include "zen_number.h"

namespace Zen
{
	namespace Game
	{
		void Camera::Orthogonal(Point2 size, Point2 lb, float nearZ, float farZ)
		{
			this->SetMatrix(Mat4MakeOrtho(lb.x, size.x + lb.x, lb.y, size.y + lb.y, nearZ, farZ));
		}

		void Camera::Perspective(Point2 size, float near, float far)
		{
			auto aspect = size.x / size.y;
			this->SetMatrix(Mat4MakePerspective(90 * (float(ZEN_F_PI) / 180.0f), aspect, 3, 100));
		}
	} // namespace Game
} // namespace Zen
